package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Scenic;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.ScenicQueryObject;

import java.util.List;
import java.util.Map;

public interface ScenicMapper {
    //int deleteByPrimaryKey(Long id);

    int insert(Scenic record);

    Scenic selectByPrimaryKey(Long id);

    List<Scenic> selectHotAndPrice(Integer state);

    int updateByPrimaryKey(Scenic record);

    List<Scenic> selectForAppList(ScenicQueryObject qo);

    List<Scenic> selectAll();

    List<Scenic> selectForList(QueryObject qo);

    void insertHistory(String keyword);

    List<Map<String,Object>> listHistory();

}